package com.xuetang9.controller.sn;

import com.xuetang9.service.sn.test.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @类: ControllerTest
 * @描述: springMVC测试
 * @date: 2020/5/11
 * @author: Admin
 * @ver 1.0.0
 * @since JDK 1.8
 */
@Controller
public class ControllerTest {

    @Autowired
    Test test;

    /**
     * 测试连接
     * @return
     */
    @RequestMapping("/test")
    public String test() {
        test.test();
        return "redirect:/test.jsp";
    }

}
